﻿using CatLib;
using GameFramework.App;
using GameFramework.Network.MessagePack;
using GameFramework.UI.FairyGUI;
using GameFramework.WebServer;
using GameLogic.UI;
using Server.Proto;

namespace GameLogic
{
    [AppBootstrap]
    public sealed class GameLogicBoostrap : IBootstrap
    {
        public void Bootstrap()
        {
            App.That.UseFairyGUI();
            App.That.Register(new GameUIConfigurationProvider());
            App.Singleton<IMessageFactory, MsgFactory>();
            App.Singleton<IWebServerConfiguration, WebServerConfiguration>();
        }
    }
}